<?php
declare (strict_types = 1);

namespace app\service\logic\common\order;

use app\model\communal\OrderConsultRefundLogModel;
use app\service\logic\BaseService;
use Exception;
use think\Collection;

final class OrderConsultRefundLogService extends BaseService
{
    protected string $modelClassName = 'OrderConsultRefundLogModel';

    /**
     * 排序参数
     *
     * @param $params
     * @param string $column
     * @param string $type
     * @return array|string[]
     */
    // public function orderByParams($params, string $column = 'id', string $type = 'desc')
    // {
    //     return parent::orderByParams($params, 'id', 'asc');
    // }


    /**
     * @param $params
     * @return Collection
     * @throws Exception
     */
    public function saveAll($params)
    {
        return (new OrderConsultRefundLogModel())->saveAll($params);
    }
}
